package com.mocker;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebFilter;
import javax.servlet.annotation.WebListener;
import java.io.IOException;

/**
 * @author Mocker
 * @Date 2017-02-08 下午5:04
 * @Version 1.0
 */
@WebListener
public class MyWebListener implements ServletContextListener {

    public void contextInitialized(ServletContextEvent servletContextEvent) {
        System.out.println("MyWebListener.contextInitialized");
    }

    public void contextDestroyed(ServletContextEvent servletContextEvent) {
        System.out.println("MyWebListener.contextDestroyed");
    }
}
